package com.farmer.redpacket.mapper;

import com.farmer.redpacket.entity.RedPacket;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface RedPacketDetailMapper extends BaseRedPacketDetailMapper {

    int batchInsert(@Param("detailList") List<BigDecimal> detailList, @Param("packet") RedPacket packet);

    int receiveOne(@Param("packetId") Long packetId,@Param("packetNo") String packetNo,@Param("userId") String userId);
}